<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
$this->title = '登录';

?>

<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">请登录</h3>
                </div>
                <div class="panel-body">
                    <form role="form" method="post" id="login">
                        <input type="hidden" name="_csrf-backend" value="<?= Yii::$app->getRequest()->getCsrfToken() ?>" />
                        <fieldset>
                            <div class="form-group">
                                <input class="form-control" placeholder="账号" name="LoginForm[username]" type="text" autofocus>
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="密码" name="LoginForm[password]" type="password" value="">
                            </div>

                            <a href="javascript:submits();" class="btn btn-lg btn-success btn-block">登录</a>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
